import request from '@/utils/request'

// 查询预订主表列表
export function listReserve_main(query) {
  return request({
    url: '/manage/reserve_main/list',
    method: 'get',
    params: query
  })
}

// 查询预订主表详细
export function getReserve_main(reserveId) {
  return request({
    url: '/manage/reserve_main/' + reserveId,
    method: 'get'
  })
}

// 新增预订主表
export function addReserve_main(data) {
  return request({
    url: '/manage/reserve_main',
    method: 'post',
    data: data
  })
}

// 修改预订主表
export function updateReserve_main(data) {
  return request({
    url: '/manage/reserve_main',
    method: 'put',
    data: data
  })
}

// 删除预订主表
export function delReserve_main(reserveId) {
  return request({
    url: '/manage/reserve_main/' + reserveId,
    method: 'delete'
  })
}
